<?php
require("top.ajax.php");

if(filter_var($_GET['mail'], FILTER_VALIDATE_EMAIL) === FALSE) {
    echo "false";
} else {
    if(User::existMail($_GET['mail'])) {
        echo "false";
    } else {
        echo "true";
    }
}

?>